package cn.sunan.basic.uitl;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;


public class PageList<T> {
    //查询当前页数据
    private List<T> rows = new ArrayList<>();
    //条数
    private  Long total;

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "PageList{" +
                "rows=" + rows +
                ", total=" + total +
                '}';
    }
}
